﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="profile.aspx.vb" Inherits="GozoFarmhouses.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">

    <section class="banner">
        <img src="Images/addPropertBanner.jpg" />
    </section>
    
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <section class="agentprofile">
                <div class="row">
                    <div class="large-3 column"> 
                        <div class="holder">
                            <img src="<%# Eval("agentPhoto")%>" />
                        </div>
                    </div>
                    <div class="large-9 column">
                        <div class="holder">
                            <h1><%# Eval("agentname")%> <%# Eval("agentSurname")%> </h1>
                            <p><%# Eval("agentDescription")%> </p>
                            <h5><span>Call:</span><%# Eval("agentPhone")%></h5>
                            <h5><span>Company:</span><%# Eval("agentCompany")%></h5>
                            <div class="social">
                                <a href="<%# Eval("agentFacebookLink")%>" target="_blank"> <i class="fa fa-facebook"></i> </a>
                                <a href="<%# Eval("agentTwitterLink")%>" target="_blank"> <i class="fa fa-twitter"></i> </a>
                                <a href="<%# Eval("agentSkypeLink")%>" target="_blank"> <i class="fa fa-skype"></i> </a>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </ItemTemplate>
   </asp:ListView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gozoFarmhouses2 %>" ProviderName="<%$ ConnectionStrings:gozoFarmhouses2.ProviderName %>" SelectCommand="SELECT * FROM Agents WHERE ([ID] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="AGENT" QueryStringField="agent" Type="Int32" />
                </SelectParameters>
    </asp:SqlDataSource>

</asp:Content>
